#ifndef CMOUSECLICKEVENT_H_
#define CMOUSECLICKEVENT_H_

#include "cmouseevent.h"

/**
 * CMouseClickEvent - class which stores informations about mouse click
 * @author Michal Rost
 * @date 04.04.2008
 */
class CMouseClickEvent : public CMouseEvent {
public:
  CMouseClickEvent(int mouseX, int mouseY, int buttonState) {
    this->mouseX = mouseX;
    this->mouseY = mouseY;
    this->buttonState = buttonState;
  }
  unsigned char getButtonState() const {
    return buttonState;
  }
  static string getClassName() {
    return "CMouseClickEvent";
  }
  static const unsigned char MOUSE_BUTTON_STATE_PRESSED = 0;
  static const unsigned char MOUSE_BUTTON_STATE_RELEASED = 1;
protected:
  unsigned char buttonState;
};

#endif
